package com.shouhe.mysap.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 守鹤
 * @create 2020-06-09 23:48
 */
public class IDUtil {

    public static String getNewPurOrderId(){
        Date date = new Date();
        SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
        String s = format.format(date);
        return "3"+s;
    }

    public static String getNewSaleOrderId(){
        Date date = new Date();
        SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
        String s = format.format(date);
        return "1"+s;
    }


    public static void main(String[] args) {
        String newSaleOrderId = getNewSaleOrderId();
        System.out.println(newSaleOrderId);
    }

}
